local QI = DailyIntake.QuestItems
local Localize = DailyIntake.Localize

-- Add item: Bait-o-Matic Blueprints; http://www.wowhead.com/?item=69979
QI.RegisterQuestItem(69979, QI.Priority.Low, function()
	-- Create Gnomish Bait-o-Matic: http://www.wowhead.com/?quest=99474
	return not QI.QuestIsDone(99474)
end)

-- Add item: Grimnur's Bait; http://www.wowhead.com/?item=69940
QI.RegisterQuestItem(69940, QI.Priority.Low, function()
	-- Live Bait: http://www.wowhead.com/?quest=29347
	return
		GetZoneText() == "Dun Morogh" and
		GetSubZoneText() == "Helm's Bed Lake" and
		not QI.QuestIsDone(29347)
end)

-- Add item: Place holder item for macro;
QI.RegisterQuestItem(-29352, QI.Priority.Normal, function()
	-- A Fowl Shortage; http://www.wowhead.com/quest=29352
	local isUsable =
		GetZoneText() == "Dun Morogh" and
		GetSubZoneText() == "Gates of Ironforge" and
		not QI.QuestIsDoneOrNotTaken(29352)

	local macroText =
[[/run DailyIntake.QuestItems.DisableMacroRefresh()
/targetexact [nodead] Dun Morogh Chicken
/cleartarget [@target, dead]
/script if not GetRaidTargetIndex("target") then SetRaidTarget("target",1) end
/run DailyIntake.QuestItems.EnableMacroRefresh()]]

	return isUsable, macroText, 418
end)

-- Add item: Ironforge Rations; http://www.wowhead.com/?item=69981
QI.RegisterQuestItem(69981, QI.Priority.High, function()
	-- A Round for the Guards: http://www.wowhead.com/?quest=29351
	return
		GetZoneText() == "City of Ironforge" and
		QI.UnitIsEntity("target", 5595, QI.Entity.Mob) and
		not QI.QuestIsDone(29351)
end)

-- Add item: Young Ironjaw; http://www.wowhead.com/?item=69932
QI.RegisterQuestItem(69932, QI.Priority.High, function()
	-- One fer the Ages: http://www.wowhead.com/?quest=29343
	return
		GetZoneText() == "City of Ironforge" and
		not QI.QuestIsDone(29343)
end)


